<%@ page import="java.util.*" %>
<%@ page import="MyBean.Charge" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">a {text-decoration: none}</style>
</head>
<body {
	background="img/背景.png " ;
	style=" background-repeat:no-repeat ;
    background-size:100% 100%; 
    background-attachment: fixed;" 
} >
<hr>
<center>
<h1>
<font size="3" color="red">田园住院系统</font>
<font size="3" color="purple">查询界面</font>
</h1>
</center>
<hr>
<br><br>
<% request.setCharacterEncoding("utf-8");
  List<Charge> list1 = (List<Charge>)request.getAttribute("list2");%>
  <table border="1" align="center">
  <tr><th>住院号</th><th>收费项目名称</th><th>费用</th></tr>
  <% Iterator<Charge> iter = list1.iterator();
  while(iter.hasNext())
  {
	  Charge charge1 = iter.next();
	%> 
<tr><th><%=charge1.getAdmissionNumber() %></th><th><%=charge1.getItemName() %></th><th><%=charge1.getItemPrice() %></th></tr>	 
  <% } %>
 <tr><th colspan="3" align="center"><a href="index.jsp">返回主界面</a></th></tr>
  </table>
  
<br>
<hr>
<center><em><p style="background:yellow">Copyright &copy; 2020 TianYuan Web Hospital,Nuc.<h1></em></center>
</body>
</html>